package com.zhilei.mapper;

import com.zhilei.pojo.Industry;
import com.zhilei.pojo.vo.TopIndustryWithThirdListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 行业表 Mapper 接口
 * </p>
 *
 * @author 志磊
 * @since 2024-09-22
 */
@Repository
@Mapper
public interface IndustryVOMapperCustom {

    /**
     * 根据id查询是否存在子id
     *
     * @param paramMap
     * @return
     */
    List<Industry> getIndustryThirdListByTopId(@Param("paramMap") HashMap<String, Object> paramMap);

    /**
     * 根据传入的三级节点的id查询一级节点的数据
     *
     * @param map
     * @return
     */
    String getTopIndustryId(@Param("paramMap") HashMap<String, Object> map);

    /**
     * 查询三级分类列表
     *
     * @return
     */
    List<TopIndustryWithThirdListVO> getAllThirdIndustryList();
}
